<?php

abstract class Man1{

    public function __construct()
    {
    }

    public function  __destruct()
    {
        // TODO: Implement __destruct() method.

    }

    private $_name ;
    private $_sex ;
    private $_age ;

    abstract protected function showInfo();

    /**
     * @return mixed
     */
    public function getAge()
    {
        return $this->_age;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->_name;
    }

    /**
     * @return mixed
     */
    public function getSex()
    {
        return $this->_sex;
    }

    /**
     * @param mixed $age
     */
    public function setAge($age)
    {
        $this->_age = $age;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->_name = $name;
    }

    /**
     * @param mixed $sex
     */
    public function setSex($sex)
    {
        $this->_sex = $sex;
    }

}
